package cn.mesmile.flow.config;

import cn.mesmile.flow.utils.IdUtils;
import org.flowable.common.engine.impl.cfg.IdGenerator;
import org.springframework.context.annotation.Configuration;

/**
 * @author zb
 * @date 2020/12/7 11:29
 * @Description
 */
@Configuration
public class IdGenerateConfig implements IdGenerator {

    @Override
    public String getNextId() {
        return IdUtils.generateNumber();
    }

}
